import http from '@/utils/http';
import request from '@/utils/request';

//知识点分类
export async function getKnowledgeListByRobotId(body) {
  return http.get('/robot/categoryConfig/qa/info', body);
}

//知识导图分类
export async function getAtlasListByRobotId(body) {
  return http.get('/robot/categoryConfig/atlas/info', body);
}

//多轮会话分类
export async function getDialogListByRobotId(body) {
  return http.get('/robot/categoryConfig/dialog/info', body);
}

//文档知识点分类
export async function getFileListByRobotId(body) {
  return http.get('/robot/categoryConfig/doc/info', body);
}

//关键词回复分类
export async function getKeyWordListByRobotId(body) {
  return http.get('/robot/categoryConfig/keyword/info', body);
}

//保存知识点配置
export async function saveKnowledgeIds(body) {
  return http.post('/robot/categoryConfig/qa/edit', body);
}

//保存知识导图配置
export async function saveAtlasIds(body) {
  return http.post('/robot/categoryConfig/atlas/edit', body);
}

//保存多轮会话配置
export async function saveDialogIds(body) {
  return http.post('/robot/categoryConfig/dialog/edit', body);
}

//保存文档知识点配置
export async function saveFileIds(body) {
  return http.post('/robot/categoryConfig/doc/edit', body);
}

//保存关键词回复配置
export async function saveKeyWordIds(body) {
  return http.post('/robot/categoryConfig/keyword/edit', body);
}

//保存表单配置
export async function saveFormIds(body) {
  return http.post('/robot/categoryConfig/form/edit', body);
}

